// 英雄接口
import { Hero } from "../types/hero"
import { HeroDetail } from "../types/hero_detail"
import RequestHttp from "../utils/request"

// 英雄信息
export const getHeroListAPI = (params: object) => RequestHttp.get<Hero[]>("/api/lol/search",params)

// 英雄详情列表
export const getHeroDetailAPI = (params: object) => RequestHttp.get<HeroDetail>("/api/lol/info",params)